@isTest
private class WBCommentControllerTester {

    static testMethod void testCreateLead() {
    	WBContent__c content = new WBContent__c();
    	content.user__c = 'JAVEN_HAO';
    	content.text__c = 'HOW ARE YOU?';
    	content.created_at__c = '2012-09-19 08:08:08';
    	content.uid__c = 'USER0TEST20120919';
    	content.source__c = 'WEIBO';
    	content.mid__c = 'TEST0WBID20120919';
        Database.insert( content );
        
        Test.startTest();
        system.debug('@@@@@@@@@@@@@@@@@@@@@'+ content.Id);
        
        Test.stopTest();
        String url = '/apex/CreateLead?wbid='+content.Id;
        Http httpProtocol = new Http();
        HttpRequest req = new HttpRequest();
        req.setTimeout(10000);
        req.setMethod( 'GET' );
        req.setEndPoint(url);
        HttpResponse response = httpProtocol.send( req );
        String jsonResult = response.getBody();
        Test.startTest();
        system.debug('@@@@@@@@@@@@@@@@@@@@@'+ content.Lead__c );
        system.debug('@@@@@@@@@@@@@@@@@@@@@'+jsonResult);
        Test.stopTest();
        
    }
}